package com.senjoeson.publicsource.kotlin

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.senjoeson.publicsource.R


/**
 *
 *@author sunqiao
 *@date 2018/5/28 15:54
 */
class BaseFragment : Fragment() {
    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {


        val view = inflater?.inflate(R.layout.fragment_base, container, false)
        view?.findViewById<TextView>(R.id.textview)?.setText(javaClass.simpleName)

        return view
    }

    //    open abstract fun setResId(): Int
}

